package com.acme.chat.server;

import java.util.Map;
import java.util.Set;

import com.acme.chat.client.ChatClient;
import com.acme.chat.newclient.ClientMessage;

public interface Server {
    boolean addClient(ChatClient client);

    void processMessage(ClientMessage message, ChatClient client);

    boolean removeClient(ChatClient client);

    Set<ChatClient> getClients();

    Set<String> getRooms();

    Map<String, Set<ChatClient>> getClientsInTheRoom();
}
